#include "../../includes/NeonCore/Timer.hpp"
using namespace Neon;

Timer::Timer()
{
	reset();
}

void
Timer::reset()
{
	m_startClock = QTime(0, 0, 0);
}

nulong
Timer::milliseconds() const
{
	QTime now = QTime::currentTime();
	return static_cast<nulong>(m_startClock.msecsTo(QTime::currentTime()));
}